package com.joesem.sale.client.widget.dialog

import android.content.Context
import android.view.WindowManager
import androidx.core.view.setPadding
import com.jiaxing.sale.client.R
import com.jiaxing.sale.client.databinding.LayoutLoadingBinding
import com.joesem.sale.client.base.BaseDialog
import com.joesem.sale.client.base.dp

class LoadingDialog(context: Context) :
    BaseDialog<LayoutLoadingBinding>(context, R.style.DialogLoading) {
    override fun LayoutLoadingBinding.initView() {
        window?.setBackgroundDrawableResource(android.R.color.transparent)
        window?.setLayout(
            WindowManager.LayoutParams.WRAP_CONTENT,
            WindowManager.LayoutParams.WRAP_CONTENT
        )
    }
}